set(incs . include/common include/device include/util include/framework/agora include/framework/sibo 
	../../../../bk_idk/components/bk_bluetooth/mesh/include/bluetooth
	../../../../bk_idk/components/wolfssl/wolfssl/openssl
	../../../../bk_idk/components/wolfssl/wolfssl
	../../../../bk_idk/components/wolfssl/utils
	../../../../bk_idk/components/wolfssl
	../../../../bk_idk/components/mbedtls/mbedtls/include
	../../../../bk_idk/components/mbedtls/mbedtls-port/inc
)

# "D:\work\bkwl\BK7258\code\bk_avdk_svn_local\bk_idk\components\mbedtls\mbedtls-port\inc\tls_config.h"
# "D:\work\bkwl\BK7258\code\bk_avdk_svn_local\bk_idk\components\bk_bluetooth\mesh\include\bluetooth\crypto.h"
set(srcs app_main.c)

if (CONFIG_INTEGRATION_DOORBELL)
if (CONFIG_SYS_CPU0)
list(APPEND srcs
	src/bkwl_base/common/bkwl_common.c
	src/bkwl_base/common/bkwl_log.c
	src/bkwl_base/common/bkwl_data.c
	src/bkwl_base/common/bkwl_event.c
	src/bkwl_base/common/bkwl_mqtt.c
	src/bkwl_base/common/bkwl_network.c
	src/bkwl_base/common/bkwl_uart.c
	src/bkwl_base/common/bkwl_bt.c
	src/bkwl_base/common/bkwl_camera.c
	src/bkwl_base/common/bkwl_http.c
	src/bkwl_base/common/bkwl_lcd.c
	src/bkwl_base/common/bkwl_str.c
	src/bkwl_base/util/cJSON.c
	src/bkwl_base/util/webclient.c
	src/bkwl_base/device/doorbell/bkwl_doorbell_main.c
	src/bkwl_base/device/doorbell/protocol/bkwl_door_sibo.c
	src/bkwl_framework/agora/bkwl_agora_main.c

)
endif()
endif()

 

# src/bkwl_framework/sibo/doorbell_boarding.c
# src/bkwl_framework/sibo/doorbell_sdp.c
# src/bkwl_framework/sibo/doorbell_network.c
# src/bkwl_framework/sibo/doorbell_transmission.c
# src/bkwl_framework/sibo/doorbell_udp_service.c
# src/bkwl_framework/sibo/doorbell_tcp_service.c
# src/bkwl_framework/sibo/doorbell_devices.c
# src/bkwl_framework/sibo/doorbell_cmd.c

if (CONFIG_INTEGRATION_DOORBELL_CS2)
list(APPEND srcs
	src/doorbell_cs2_service.c
)
endif()

#set(priv_req bk_init bt media_service lwip_intf_v2_1 webclient)
set(priv_req bk_init bt  media_service  lwip_intf_v2_1  )


if ("${ARMINO_SOC}" STREQUAL "bk7256") 
list(APPEND priv_req media cs2p2p aud_intf)
endif()

if ("${ARMINO_SOC}" STREQUAL "bk7258")
list(APPEND priv_req multimedia cs2p2p  )
endif()

if (CONFIG_OVERRIDE_FLASH_PARTITION)
	list(APPEND srcs
		vendor_flash.c
	)
endif()

armino_component_register(
	SRCS "${srcs}"
	INCLUDE_DIRS "${incs}"
	PRIV_REQUIRES "${priv_req}" wifi_transfer
)
